<{strip}>
<table width="100%" cellpadding=0 cellspacing=0 border=0 id="menuBody">
  <tr>
    <th>导 航</th>
  </tr>
  <{foreach item=p1 from=$ptree}>
  <tr class="menu" >
    <td>
        <{if !$p1.nodes}>
            <A href="<{if $p1.url}><{url a=$p1.url}><{else}>javascript:;<{/if}>" <{if !$p1.url}>class="disabled"<{/if}> onclick="archor(<{$p1.id}>)" id="menu_<{$p1.id}>"><{$p1.alias|default:$p1.title}></A>
        <{else}>
            <A href="<{if $p1.url}><{url a=$p1.url}><{else}>javascript:;<{/if}>" onclick="archor(<{$p1.id}>);switch_menu(<{$p1.id}>)" id="menu_<{$p1.id}>"><{$p1.alias|default:$p1.title}></A>
        <div class="submenu" id="submenu_<{$p1.id}>">
            <{foreach item=p2 from=$p1.nodes}>
                <div><a href="<{if $p2.url}><{url a=$p2.url}><{else}>javascript:;<{/if}>" <{if !$p2.url}>class="disabled"<{/if}> onclick="archor(<{$p1.id}>)"><{$p2.alias|default:$p2.title}></a></div>
            <{/foreach}>
        </div>
      <{/if}> </td>
  </tr>
  <{/foreach}>
</table>
<{/strip}>
